package com.dfqy.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.Arrays;

/**
 * Author : atyushu
 * Package : com.dfqy.config
 * ClassName : EventConfig
 * Create : 2023/8/4 - 17:30
 * Version : v1.0
 * Description : The class of type config for event
 */
@Component
@ConfigurationProperties(prefix = "event-config")
public class EventConfig {

    private String[] stype = new String[0];

    private String[] addr = new String[0];

    public EventConfig() {

    }

    public EventConfig(String[] stype, String[] addr) {
        this.stype = stype;
        this.addr = addr;
    }

    public String[] getAddr() {
        return addr;
    }

    public void setAddr(String[] addr) {
        this.addr = addr;
    }

    public String[] getStype() {
        return stype;
    }

    public void setStype(String[] stype) {
        this.stype = stype;
    }
}
